<template>
  <div>
    <van-tabs v-model="active" @click="onClick">
      <van-tab :key="item.id" v-for="item in list1" :title="item.tit">
          <lotteryCard :list2="list2"></lotteryCard>
      </van-tab>
    </van-tabs>

  </div>
</template>

<script>
  import lotteryCard from "./lotteryCard";

  export default {
    props:['list1','list2'],
    name: "lotterys",
    components:{
      'lotteryCard':lotteryCard
    },
    data() {
      return {
        active: 0
      };
    },
    methods:{
      onClick(name,title){
        console.log(name);
      }
    }
  }
</script>

<style scoped>

</style>
